package com.ykdl.member.kid.beans;
import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class LaunchBean  implements Serializable,IJsonParser  {
	
	private boolean valid_login ;
	private String desc ;
	private String error ;
	private int tutorial ;
	private String anonymous ;
	private String[] jpush_tags ;
	private String alias ;
	public String getAlias() {
		return alias;
	}

	public String[] getJpush_tags() {
		return jpush_tags;
	}

	public String getAnonymous() {
		return anonymous;
	}

	public int getTutorial() {
		return tutorial;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public boolean isLoggedin() {
		return valid_login;
	}

	public void setLoggedin(boolean loggedin) {
		this.valid_login = loggedin;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, LaunchBean.class);
		}
		return null;
	}
	
}